package com.heima.article;

import com.heima.article.service.AuthorService;
import com.heima.model.article.pojo.ApAuthor;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.Date;

@SpringBootTest
public class test01 {
    @Autowired
    private AuthorService authorService;
    @Test
    public void get(){
        ApAuthor apAuthor = new ApAuthor();

        apAuthor.setName("bvn");
        apAuthor.setType(2);
        apAuthor.setUserId(252);
        apAuthor.setCreatedTime(new Date());
        apAuthor.setWmUserId(0);

        boolean save = authorService.save(apAuthor);
        System.out.println("save = " + save);
    }
}
